/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦，本文采用木兰宽松许可证第2版]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_console.htm
 *
 * Zhiqim Console is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.manager.dbo;

/**
 * 操作员数据对象
 * 1、保留操作员四项，编码/密码/密码盐值/头像
 * 2、保留配置四项，验证码/记住账号/记住密码/登录管理
 *
 * @version v1.6.0 @author zouzhigang 2021-3-21 新建与整理
 */
public class ZmrOperator
{
    //操作员四项
    private String operatorCode;            //1.操作员编码
    private String operatorPass;            //2.操作员密码
    private String operatorPassSalt;        //3.操作员密码盐值
    private long operatorAvatar;            //4.操作员头像编号
    
    //配置四项
    private boolean hasVerificationCode;    //1.是否需要验证码
    private boolean hasRememberCode;        //2.是否记住编号
    private boolean hasRememberPass;        //3.是否记住密码
    private boolean hasManageLogin;         //4.是否启动管理页登录
    
    public String toString()
    {
        return new StringBuilder().append("[")
            .append(operatorCode)
            .append("]").toString();
    }
    
    public String getOperatorCode()
    {
        return operatorCode;
    }
    
    public void setOperatorCode(String operatorCode)
    {
        this.operatorCode = operatorCode;
    }
    
    public String getOperatorPass()
    {
        return operatorPass;
    }
    
    public void setOperatorPass(String operatorPass)
    {
        this.operatorPass = operatorPass;
    }
    
    public String getOperatorPassSalt()
    {
        return operatorPassSalt;
    }
    
    public void setOperatorPassSalt(String operatorPassSalt)
    {
        this.operatorPassSalt = operatorPassSalt;
    }
    
    public long getOperatorAvatar()
    {
        return operatorAvatar;
    }
    
    public void setOperatorAvatar(long operatorAvatar)
    {
        this.operatorAvatar = operatorAvatar;
    }

    public boolean hasVerificationCode()
    {
        return hasVerificationCode;
    }

    public void setVerificationCode(boolean hasVerificationCode)
    {
        this.hasVerificationCode = hasVerificationCode;
    }

    public boolean hasRememberCode()
    {
        return hasRememberCode;
    }

    public void setRememberCode(boolean hasRememberCode)
    {
        this.hasRememberCode = hasRememberCode;
    }

    public boolean hasRememberPass()
    {
        return hasRememberPass;
    }

    public void setRememberPass(boolean hasRememberPass)
    {
        this.hasRememberPass = hasRememberPass;
    }
    
    public boolean hasManageLogin()
    {
        return hasManageLogin;
    }

    public void setManageLogin(boolean hasManageLogin)
    {
        this.hasManageLogin = hasManageLogin;
    }
}
